<?=$form?>
<p style="display: none" data-mode="<?=$mode?>" id="mode"></p>
<?php
$js = <<<JS
   if($('#mode').data('mode')=='B'){
    $('.field-teacher-is_headmaster').parent().parent().hide();
   }
JS;
$this->registerJs($js);
?>
